/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import Model.Config;
import java.util.ResourceBundle;

/**
 *
 * @author pyty
 */
public class RBUtils {
    private static ResourceBundle texts = ResourceBundle.getBundle(Config.TEXTS_FILE, Config.LOCALE);
    
    public static String getBoundle(String key) {
        return texts.getString(key);
    }
    
    public static String[] getLocalizedMediumTypes() {
        String[] localTypes = new String[MediumTypes.STRINGS.length];
        
        int i = 0;
        for(String s : MediumTypes.STRINGS) {
            localTypes[i] = texts.getString(s);
            i++;
        }
        
        return localTypes;
    }
}
